import request from '@/utils/request'

// 查询撞库测试列表
export function listCheck(query) {
  return request({
    url: '/merchant/check/list',
    method: 'get',
    params: query
  })
}

// 查询撞库测试详细
export function getCheck(id) {
  return request({
    url: '/merchant/check/' + id,
    method: 'get'
  })
}

// 新增撞库测试
export function addCheck(data) {
  return request({
    url: '/merchant/check',
    method: 'post',
    data: data
  })
}

// 修改撞库测试
export function updateCheck(data) {
  return request({
    url: '/merchant/check',
    method: 'put',
    data: data
  })
}

// 删除撞库测试
export function delCheck(id) {
  return request({
    url: '/merchant/check/' + id,
    method: 'delete'
  })
}

export function configInfoExtData() {
  return request({
    url: '/merchant/check/extData',
    method: 'get'
  })
}
